package com.kuang.springcloud;

import com.kuang.myrule.KuangRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/*Ribbon和Eureka整合以后,客户端可通过服务名直接调用服务,不用关心ip地址和端口号*/
@SpringBootApplication
@EnableEurekaClient // eureka客户端启动注解
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = KuangRule.class) // 自定义负载均衡方式,对哪个服务负载均衡和自定义的方式类在哪
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class, args);
    }
}
